/**
 * 创建store
 */
import { createStore, applyMiddleware } from 'redux'
import rootReducer from './reducer'
// 处理异步action中间件
import thunk from 'redux-thunk'
// 调试redux数据
import { composeWithDevTools } from 'redux-devtools-extension'

const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk)))

export default store
